class CreateIdentities < ActiveRecord::Migration
  def self.up
    create_table :identities, :options => 'ENGINE=InnoDB DEFAULT CHARSET=UTF8' do |t|
      t.column :name, :string
      t.column :public, :boolean      
      t.column :created_at, :datetime

      t.column :site_id, :integer, :null => false
      t.column :user_id, :integer, :null => false
    end
  end

  def self.down
    drop_table :identities
  end
end
